const { getDefaultBlock, themeList } = require("../tool/util");
const { writeFile, readFile, fsExistsSync } = require("../../app/util");

function buildAllConfig() {
    const list = themeList();
    list.forEach((item) => {
        const findPath = `./src/theme/${item}/snippets/collection_product_waterfall.liquid`;
        if (fsExistsSync(findPath)) {
            if (readFile(findPath).search(/plugin-product_item-img_box/g) === -1) {
                console.log("查找失败", findPath);
            }
        }
    });
}

buildAllConfig();
